package com.bm.server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bm.common.util.Rutils;
import com.bm.common.vo.R;
import com.bm.server.dao.UserInfoDao;
import com.bm.server.entity.UserInfo;
import com.bm.server.service.intf.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Resource
    private UserInfoDao dao;
    @Override
    public R selectById(int uid) {
        QueryWrapper<UserInfo> wrapper = new QueryWrapper<>();
        wrapper.eq("uid",uid);
        return Rutils.ok(dao.selectOne(wrapper));
        }
      
    
}
